/** file nbalsa.h
    author belot.nicolas
    non blocking io with artsc
*/

#ifndef NBALSA_H
#define NBALSA_H 1
#include "libtrckr.h"
#ifdef HAVE_LIBALSA

#include <pthread.h>
#include <alsa/asoundlib.h>

namespace libtrckr {
	typedef int nbalsa_cb_t(int, void*) ;

	snd_pcm_t *alsa_get_stream(uint*, short*); //rate and item size;

	void alsa_close_stream(snd_pcm_t*);

	double *alsa_getIn();

	void alsa_set_callback(nbalsa_cb_t*,void*);


}

#endif
#endif
